-
Notifications
You must be signed in to change notification settings - Fork 157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adds extra parameters to dt_create_missing_terms. #378
Conversation
Resolves #379 |
@adamsilverstein @dkotter if either of you have time to review this that would be great, thanks! |
Leaving a review note: I just want to make sure that this doesn't impact existing hooked functions - there's a change in PHP 7 that can throw notices/errors if the number of args doesn't match but I don't remember off the top of my head what exactly causes the issue. If you do know, that'd be great, but otherwise I will look into this in the next week or two. |
@helen i couldn't find that change although i vaguely recall it. In any case, I think its only an issue if your function expects more parameters than are passed (and provides no defaults)? In that case, this change would be safe as its adding arguments so existing handlers would work as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Making suggestions so I can commit them :) Turns out the commit suggestions feature doesn't work for forks? Anyway, I committed them directly in Git.
Description of the Change
Add taxonomy and term data to dt_create_missing_terms filter to allow whitelisting/blacklisting taxonomies/terms.